#!/bin/bash

source ~/.bashrc

## 统一执行region的mapreduce和插入mysql操作

declare cur_date
if [[ $# -eq 0 ]];then
	cur_date=$(date +"%Y%m%d" -d "-1 day")
elif [[ $# -eq 1 ]];then
        cur_date=$1
fi
echo "==========sh run_region.sh $cur_date==========="

sh run_regionMR.sh $cur_date
sh run_regionDB.sh $cur_date
